V = Variables
R = Reading function
BINARY —→ SIGNED WORD
The VR10BinToSWr function converts a signed binary variable type in a Word type (word with sign).
VR10BinToSWr (array, index, return, errcode)
Parameters:
| IN/OUT | VARIABLE TYPE | EXAMPLE NAME | DIM | |
|---|---|---|---|---|
| IN | ARRGBL | array | B | Array containing the data to be converted (must be declared with at least “index + 1” items) |
| IN | GLOBAL | index | L | Index of the array element at the beginning of the data |
| OUT | GLOBAL | return | W | Data value converted |
| OUT | GLOBAL | errcode | F | Variable that indicates a possible error on the function |
After calling the function, ' errcode ' can take certain values, the meaning of these values is summarized below:
0: No error
Trasforma il valore (binario) in un valore signed word
index = 1 array[1] = 1 array[2] = 80 VR10BinToSWr (array, index, return, errcode) ;Sul dato return si troverà : ; return = 336